package com.jarchie.androiddev.http

import com.jarchie.androiddev.model.HomeData
import retrofit2.http.GET
import retrofit2.http.Query

interface IApiInterface {
    @GET("path/xxx")
    suspend fun requestFeed(
        @Query("feedId") feedId: Long = 0,
        @Query("type") type: String = "all",
        @Query("pageCount") pageCount: Int = 0,
        @Query("userId") userId: Int = 0
    ): ApiResult<List<HomeData>>

    @GET("jarchie520/AndroidDev/raw/main/app/src/main/assets/home_data.json")
    suspend fun requestHomeData(): ApiResult<HomeData>
}